package com.kancy.demo.springbootproguard.runner;

import com.kancy.demo.springbootproguard.service.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

/**
 * HelloRunner
 *
 * @author kancy
 * @date 2020/1/25 12:14
 */
@Component
public class HelloRunner implements ApplicationRunner {
    @Autowired
    private HelloService helloService;

    @Override
    public void run(ApplicationArguments args) throws Exception {
        helloService.say();
    }
}
